package com.ces.hk.hibernate.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;



@Entity
@Table(name="t_student")
public class User {
	private Integer id;
	private String name;
	private Integer age;
	
	@Id
	public Integer getId() {
		return id;
	}
	@Column(name = "name", length = 20)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@Column(name ="age")
	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public User(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}


	public void setId(Integer id) {
		this.id = id;
	}

	public User() {
		super();
		// TODO Auto-generated constructor stub
	}
}
